package com.bifang.common.vo.dict;

import com.bifang.common.vo.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.validation.constraints.NotBlank;
import lombok.Data;

@Data
@ApiModel(value = "通用下拉框查询", description = "通用下拉框查询")
public class SelectQueryVO extends BaseVO {
    @ApiModelProperty("参数字段")
    private List<CommonQueryVO> queryList;

    @ApiModelProperty("结果字段名key")
    @NotBlank(message = "key字段不能为空（实体类字段）")
    private String keyName;

    @ApiModelProperty("结果字段名value")
    @NotBlank(message = "value字段不能为空（实体类字段）")
    private String valueName;

    @ApiModelProperty("表名")
    @NotBlank(message = "表名不能为空（数据库中表名）")
    private String tableName;

    @ApiModelProperty("最大数量")
    private int size;
}
